package com.pengshun.modules.api.coal.result;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonView;
import com.pengshun.modules.api.coal.service.dto.MerchantCoalDto;
import com.pengshun.modules.common.ReslutView;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class HistoryCoalResult {

    @JsonFormat(pattern="yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @JsonView(ReslutView.aView.class)
    private Date time;

    @JsonView(ReslutView.aView.class)
    private List<MerchantCoalDto> coalDtoList;

    @JsonView(ReslutView.aView.class)
    private Long total;

    public HistoryCoalResult() {
    }

    public HistoryCoalResult(Date time, List<MerchantCoalDto> coalDtoList, Long total) {

        this.time = time;
        this.coalDtoList = coalDtoList;
        this.total = total;
    }
}
